package pers.wy.sell.domain;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * 商品
 *
 * @Author: 月落
 * @Date: Created in 19:08 2018/9/4
 */
@Entity
@Data
public class ProductInfo {

    @Id
    private String productId;// 商品ID

    private String productName;// 商品名称

    private BigDecimal productPrice; // 商品单价

    private Integer productStock; // 商品库存

    private String productDescription; // 商品描述

    private String productIcon; // 商品图片

    private Integer productStatus; // 商品状态 0 正常 1 下架

    private Integer categoryType; // 商品类目编号

    public ProductInfo() {
    }

    public ProductInfo(String productId, String productName, BigDecimal productPrice, Integer productStock, String productDescription, String productIcon, Integer productStatus, Integer categoryType) {
        this.productId = productId;
        this.productName = productName;
        this.productPrice = productPrice;
        this.productStock = productStock;
        this.productDescription = productDescription;
        this.productIcon = productIcon;
        this.productStatus = productStatus;
        this.categoryType = categoryType;
    }
}
